using System.ComponentModel;
using System.Data;
using System.Web.Services;
using Customs.Components.GC;
using System;

namespace Rainbow.WS
{
	public class GCService : WebService
	{
		public GCService()
		{
			InitializeComponent();
		}

		#region Component Designer generated code

		//Required by the Web Services Designer 
		private IContainer components = null;

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose(bool disposing)
		{
			if (disposing && components != null)
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		#endregion
		
		
		[WebMethod]
		public DataSet HopDong_GetDanhSach(string maHaiQuan, string maDoanhNghiep)
		{			
			return HopDong.GetDanhSach(maHaiQuan, maDoanhNghiep);
		}

        [WebMethod]
        public DataSet HopDong_GetDanhSachOfHopDong(string maHaiQuan, string maDoanhNghiep,string sohopdong,DateTime ngayky)
        {
            return HopDong.GetHopDong(maHaiQuan, maDoanhNghiep,sohopdong,ngayky);
        }

        [WebMethod]
        public DataSet HopDong_GetHopDong(string maHaiQuan, string maDoanhNghiep, long index)
        {
            return HopDong.GetHopDong(index, maHaiQuan, maDoanhNghiep);
        }	
        //---------------------------------------------------------------------------------------------------
		[WebMethod]
		public DataSet NguyenPhuLieu_GetDanhSach(string maHaiQuan, string maDoanhNghiep)
		{			
			return NguyenPhuLieu.GetDanhSach(maHaiQuan, maDoanhNghiep);
		}

        [WebMethod]
        public DataSet NguyenPhuLieu_GetDanhSachOfHopDong(string maHaiQuan, string maDoanhNghiep, string sohopdong, DateTime ngayky)
        {
            return NguyenPhuLieu.GetDanhSachNPLOfHopDong(maHaiQuan, maDoanhNghiep, sohopdong, ngayky);
        }
        //---------------------------------------------------------------------------------------------------
		[WebMethod]
		public DataSet SanPham_GetDanhSach(string maHaiQuan, string maDoanhNghiep)
		{			
			return SanPham.GetDanhSach(maHaiQuan, maDoanhNghiep);
		}

        [WebMethod]
        public DataSet SanPham_GetDanhSachOfHopDong(string maHaiQuan, string maDoanhNghiep, string sohopdong, DateTime ngayky)
        {
            return SanPham.GetDanhSachSPOfHopDong(maHaiQuan, maDoanhNghiep, sohopdong, ngayky);
        }
        //---------------------------------------------------------------------------------------------------
        		
		
		[WebMethod]
		public DataSet PhuKien_GetDanhSach(string maHaiQuan, string maDoanhNghiep)
		{			
			return PhuKienDangKy.GetDanhSach(maHaiQuan, maDoanhNghiep);
		}

        [WebMethod]
        public DataSet PhuKien_GetDanhSachOfHopDong(string maHaiQuan, string maDoanhNghiep, string sohopdong, DateTime ngayky)
        {
            return PhuKienDangKy.GetDanhSach(maHaiQuan, maDoanhNghiep, sohopdong, ngayky);
        }
        //---------------------------------------------------------------------------------------------------
       
        [WebMethod]
        public DataSet HangPhuKien_GetDanhSach(string maHaiQuan, string maDoanhNghiep)
        {
            return PhuKien.GetDanhSach(maHaiQuan, maDoanhNghiep);
        }

        [WebMethod]
        public DataSet HangPhuKien_GetDanhSachOfHopDong(string maHaiQuan, string maDoanhNghiep, string sohopdong, DateTime ngayky)
        {
            return PhuKien.GetDanhSachPhuKienOfHopDong(maHaiQuan, maDoanhNghiep, sohopdong, ngayky);
        }
        //---------------------------------------------------------------------------------------------------
       
        [WebMethod]
        public DataSet LoaiSanPham_GetDanhSach(string maHaiQuan, string maDoanhNghiep)
        {
            return LoaiSanPham.GetDanhSach(maHaiQuan, maDoanhNghiep);
        }

        [WebMethod]
        public DataSet LoaiSanPham_GetDanhSachOfHopDong(string maHaiQuan, string maDoanhNghiep, string sohopdong, DateTime ngayky)
        {
            return LoaiSanPham.GetDanhSachNhomSPOfHopDong(maHaiQuan, maDoanhNghiep, sohopdong, ngayky);
        }
        //---------------------------------------------------------------------------------------------------
       
        [WebMethod]
        public DataSet ThietBi_GetDanhSach(string maHaiQuan, string maDoanhNghiep)
        {
            return ThietBi.GetDanhSach(maHaiQuan, maDoanhNghiep);
        }


        [WebMethod]
        public DataSet ThietBi_GetDanhSachOfHopDong(string maHaiQuan, string maDoanhNghiep, string sohopdong, DateTime ngayky)
        {
            return ThietBi.GetDanhSachThietBiOfHopDong(maHaiQuan, maDoanhNghiep, sohopdong, ngayky);
        }
        //---------------------------------------------------------------------------------------------------

        [WebMethod]
        public DataSet DinhMuc_GetDanhSach(string maHaiQuan, string maDoanhNghiep)
        {
            return DinhMuc.GetDanhSach(maHaiQuan, maDoanhNghiep);
        }


        [WebMethod]
        public DataSet DinhMuc_GetDanhSachOfHopDong(string maHaiQuan, string maDoanhNghiep, string sohopdong, DateTime ngayky)
        {
            return DinhMuc.GetDanhSachDinhMucOfHopDong(maHaiQuan, maDoanhNghiep, sohopdong, ngayky);
        }
        [WebMethod]
        public DataSet DinhMuc_GetDanhSachDinhMuc(string maHaiQuan, string maDoanhNghiep, long index)
        {
            return DinhMuc.GetDanhSachDinhMuc(index,maHaiQuan, maDoanhNghiep);
        }
	}
}